package com.ly.pojo.query;

import lombok.Data;
import jakarta.validation.constraints.NotNull;
import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 产品查询封装
 *
 * @author Administrator
 * @date 2025-03-07 10:51:13
 */
@Data
public class ProductQuery {

    /**
     * 产品ID:产品ID，必填
     */
    @NotNull(groups = { QueryGroup.class }, message = "产品ID不能为空")
    @Schema(description = "产品ID:产品ID，必填")
    private Integer productId;

    /**
     * 页码:页码，必填
     */
    @NotNull(groups = { QueryGroup.class }, message = "页码不能为空")
    @Schema(description = "页码:页码，必填")
    private Integer pageIndex;

    /**
     * 每页数量:每页数量，必填
     */
    @NotNull(groups = { QueryGroup.class }, message = "每页数量不能为空")
    @Schema(description = "每页数量:每页数量，必填")
    private Integer pageSize;

    /**
     * 分页起始位置:分页起始位置，用于sql查询
     */
    @Schema(description = "分页起始位置:分页起始位置，用于sql查询")
    private Integer start;
}
